﻿@model bonus.Models.Order

@{
	Layout = null;
}

<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="description" content="">
	<meta name="author" content="">
	<title>订单详情</title>
	<link href="~/LinScript/bootstrap/css/bootstrap.css" rel="stylesheet" />
	<link href="~/LinScript/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
	<link href="~/LinScript/bootstrap-validator/bootstrapValidator.min.css" rel="stylesheet" />
	<script src="~/LinScript/jquery/jquery.js"></script>
	<script src="~/LinScript/bootstrap-validator/bootstrapValidator.min.js"></script>
	<script src="~/LinScript/bootstrap-validator/zh_CN.js"></script>
	<script src="~/LinScript/bootstrap/js/bootstrap.bundle.min.js"></script>
	<script src="~/LinScript/layer/layer.js"></script>
	<link href="~/Content/sb-admin.css" rel="stylesheet" />
</head>
<body>
	@if (Services.Cookie.GetUserType() == bonus.Models.Grade.USER)
	{
		<div class="container">
			<div class="card card-register mx-auto mt-4">
				<div class="card-header">订单详情</div>
				<table class="table mb-0" id="Order-pro">
					<tbody>
						<tr>
							<td class="text-right">
								<strong>订单编号:</strong>
							</td>
							<td class="text-muted">
								@Model.OrderNo
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>买方姓名:</strong>
							</td>
							<td class="text-muted">
								@Model.UserName
							</td>
						</tr>

						<tr>
							<td class="text-right">
								<strong>购买方式:</strong>
							</td>
							<td class="text-muted">
								@bonus.Models.User.TypeClass.GetType(Model.BuyType)
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>服务中心:</strong>
							</td>
							<td class="text-muted">
								@Model.AddPC
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>商品总价:</strong>
							</td>
							<td class="text-muted">
								@Model.Money 元
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>PV值:</strong>
							</td>
							<td class="text-muted">
								@Model.PV
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	}
	else
	{
		<div class="container">
			<div class="card card-register mx-auto mt-4">
				<div class="card-header">订单详情</div>
				<table class="table mb-0" id="Order-pro">
					<tbody>
						<tr>
							<td class="text-right">
								<strong>订单编号:</strong>
							</td>
							<td class="text-muted">
								@Model.OrderNo
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>卖方编号:</strong>
							</td>
							<td class="text-muted">
								@Model.SaleNo
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>买方姓名:</strong>
							</td>
							<td class="text-muted">
								@Model.UserName
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>联系方式:</strong>
							</td>
							<td class="text-muted">
								@Model.Mobile
							</td>
						</tr>

						<tr>
							<td class="text-right">
								<strong>购买方式:</strong>
							</td>
							<td class="text-muted">
								@bonus.Models.User.TypeClass.GetType(Model.BuyType)
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>服务中心:</strong>
							</td>
							<td class="text-muted">
								@Model.AddPC
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>商品总价:</strong>
							</td>
							<td class="text-muted">
								@Model.Money 元
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>PV值:</strong>
							</td>
							<td class="text-muted">
								@Model.PV
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>交易流水:</strong>
							</td>
							<td class="text-muted">
								@Model.Wather
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>收货地址:</strong>
							</td>
							<td class="text-muted">
								@Model.Add@Model.Address
							</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>备注:</strong>
							</td>
							<td class="text-muted">
								@Model.Remarks
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="card card-register mx-auto mt-4 mb-4">
				<div class="card-header">产品详情</div>
				<table class="table mb-0">
					<thead>
						<tr>
							<th>产品编号</th>
							<th>产品名称</th>
							<th>产品价格</th>
							<th>产品数量</th>
						</tr>
					</thead>
					<tbody>
						@foreach (var item in Model.Products)
						{
							<tr>
								<td>
									@item.No
								</td>
								<td>
									@item.Name
								</td>
								<td>
									@item.Money
								</td>
								<td>
									@item.Num
								</td>

							</tr>
						}
					</tbody>
				</table>
			</div>
		</div>
		<script>
			$(function () {
				$("#Order-pro tr td").css("width", "50%");
			})
		</script>
	}

</body>
</html>
